#define  _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <math.h>
int main() {
    float a, b, c;
    float dert;
    float x1, x2;
    while (scanf("%f%f%f", &a, &b, &c) != EOF)
    {
        if (a == 0)
            printf("Not quadratic equation\n");
        else
        {
            dert = b * b - 4 * a * c;
            if (0 == dert)
            {
                float mp = -b + sqrt(dert);
                if (mp == 0)
                {
                    printf("x1=x2=%.2f\n", mp);
                }
                else
                    printf("x1=x2=%.2f\n", (-b + sqrt(dert)) / 2.0 / a);
            }
            else if (dert > 0)
            {
                x1 = (-b - sqrt(dert)) / 2.0 / a;
                x2 = (-b + sqrt(dert)) / 2.0 / a;
                printf("x1=%.2f;x2=%.2f\n", x1, x2);
            }
            else
            {
                printf("x1=%.2f-%.2fi;x2=%.2f+%.2fi\n", -b / 2 / a, sqrt(-dert) / 2 / a, -b / 2 / a, sqrt(-dert) / 2 / a);
            }
        }
    }
    return 0;
}